<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm"  uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>传统POS数据-传统POS商户交易报表</title>

<!-- JS与CSS引用 [START] -->
<%@include file="/WEB-INF/include/head-common.jsp" %>
<!-- JS与CSS引用 [END] -->
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
</head>
<body>
<div id="main_container">

	<!-- 网页顶部信息 [START] -->
	<%@include file="/WEB-INF/include/header.jsp" %> 
	<!-- 网页顶部信息 [END] -->
	
    
    <div class="main_content">
    	<!-- 网页顶部导航菜单 [START] -->
    	<%@include file="/WEB-INF/include/main-menu.jsp" %>
        <!-- 网页顶部导航菜单 [END] -->            
                    
    <div class="center_content">  
    
    
    
    <div class="left_content">
    
    		<!-- 网页左侧菜单 [START] -->
            <%@include file="/WEB-INF/include/sidebarmenu.jsp" %>
            <!-- 网页左侧菜单 [END] --> 
            
    </div>  
    
    <div class="right_content"> 
    	<div class="position">
	    	<div class="position_box">当前位置：<%@include file="/WEB-INF/include/sitemap.jsp" %></div>
	    </div>
        <div class="main_box">
        	<div class="main_box_title"><span>传统POS商户交易报表</span></div>
	        <div>
	        <form action="ctpos.do" method="get">  	 	
		   	 	<span><label class="field_label">汇卡商户号:</label><input name="wpmerchno"  value="${param.wpmerchno}" type="text"/></span>
		   	 	<span><label class="field_label">银联商户号:</label><input name="merchno"  value="${param.merchno}" type="text"/></span>
			    <span><label class="field_label">银联终端号:</label><input name="termno" value="${param.termno}" type="text" /></span>
		        <span><label class="field_label">汇卡商户名:</label><input name="merchname" value="${param.merchname}" type="text"/></span>
		   	 	<span><label class="field_label">导入时间:</label><input name="importdatetime"  value="${param.importdatetime}" type="text"/></span>
	    	 	<span><label class="field_label">交易日期开始:</label>
	    	 		<input name="transDateStart" value="${param.transDateStart}"  type="text" onclick="WdatePicker()" class="Wdate" readonly="readonly"/>
	    	 	</span>
	    	 	<span><label class="field_label">交易日期结束:</label>
	    	 		<input name="transDateEnd" value="${param.transDateEnd}"  type="text" onclick="WdatePicker()" class="Wdate" readonly="readonly"/>
	    	 	</span>
		        <input type="submit" value="" class="btn_search"/>
	        </form>
	        </div>
	        <table id="rounded-corner">
				<thead>
					<tr>					
						<th class="rounded-company">序号</th>
						<th class="rounded">导入日期</th>
						<th class="rounded">汇卡商户名</th>
						<th class="rounded">汇卡商户号</th>
						<th class="rounded">银联商户号</th>
						<th class="rounded">银联终端号</th>
						<th class="rounded">交易日期</th>					
						<th class="rounded">交易时间</th>
						<th class="rounded">系统参考号</th>
						<th class="rounded">交易金额</th>
						<th class="rounded">卡号</th>
						<th class="rounded">卡号类型</th>
						<th class="rounded-q4">查看</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="item" items="${list }" varStatus="seq">
						<tr>
							<td>${seq.count }</td>
							<td>${item.importdatetime }</td>
							<td>${item.merchname }</td>
							<td>${item.wpmerchno }</td>
							<td>${item.merchno }</td>
							<td>${item.termno }</td>
							<td>${item.transdate }</td>
							<td>${item.transtime }</td>
							<td>${item.sysno }</td>
							<td>${item.transmoney }</td>
							<td>${item.cardno }</td>
							<td>${item.cardtype }</td>
							<td><a href="ctpos/detail.do?pk=${item.pkTradefileinfo}">详情</a></td>
						</tr>
					</c:forEach>
					<c:if test="${totalcount==0}">
					<tr>
						<td colspan="20" align="center">
							未找到相应数据
						</td>
					</tr>
					</c:if>
				</tbody>
			</table>
		   	<!-- 分页条的必须参数：naviurl --> 
		   	<c:set var="naviurl" value="ctpos.do" scope="request"/>
		   	<!-- 引入分页条 -->  
		   	<%@include file="/WEB-INF/include/pagebar.jsp" %>
                	
        </div>

     </div>
     <!-- end of right content-->
            
                    
  </div>   
  <!--end of center content -->               
                    
                    
    
    
    <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    
    	<div class="left_footer">IN ADMIN PANEL | Powered by <a href="http://indeziner.com">INDEZINER</a></div>
    	<div class="right_footer"><a href="http://indeziner.com"><img src="images/indeziner_logo.gif" alt="" title="" border="0" /></a></div>
    
    </div>

</div>		
</body>
</html>